home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-02-05 | 2.2 KB | 84 lines | [TEXT/MPS ] |
- #---------------------------------------------------------------------
- #
- # MakeFile for XWindShell XCMD
- #
- # Copyright © 1989-92 Apple Computer, Inc.
- #
- #
- # This makefile depends on a .r file called XWindShell.r to act
- # as a source for the resource compiler.
- #
- # The files included with the XWindShell XCMD are meant to be
- # used as a starting point for XCMDs in C or Pascal that wish to
- # create and manage XWindows.
- #
- # Files:
- # ------
- # XWindShell.c
- # XWindShell.r
- # *MakeFile
- #
- #
- # Authors: Andy Stadler/Darin Acquistapace
- # Created: 04/11/89
- # Modified: See Mod History Below
- #
- # Modification History:
- # ---------------------
- # 04/11/89 - New today.
- # 12/05/91 - Revised slightly. Updated header info.
- # 01/29/92 - Modified to support CIIGS.
- #
- #------------------------------------------------------------------
-
-
- #------------------------------------------------------------------
- # Defaults
- #------------------------------------------------------------------
-
- TargetXCMD = XWindShell
- TargetObjs = XWindShell.c.obj
- AOptions =
- COptions =
- LOptions = -x
- ROptions = -i "{MPW}Interfaces:RIIGSIncludes"
-
- .a.obj ƒ .a
- asmiigs {AOptions} {default}.a -o {default}.a.obj
-
-
- .c.obj ƒ .c
- ciigs {coptions} {default}.c -o {default}.c.obj
-
-
- #------------------------------------------------------------------
- # The c compiler will output 4 segments: EntrySeg & Main, containing
- # code; and ~globals and ~arrays containing data. This line ensures
- # that everything gets put back into the main segment in the
- # correct order.
- #------------------------------------------------------------------
-
- SegsToMain = -lseg main ∂
- {TargetXCMD}.c.obj(@EntrySeg) ∂
- {TargetXCMD}.c.obj(@Main) ∂
- {TargetXCMD}.c.obj(@~arrays) ∂
- {TargetXCMD}.c.obj(@~globals) ∂
- "{CIIGSLibraries}"CLib
-
-
- #------------------------------------------------------------------
- # Main build rules
- #------------------------------------------------------------------
-
- {TargetXCmd} ƒ {TargetXCmd}.omf {TargetXCmd}.r
- reziigs {TargetXCmd}.r {ROptions} -o {targetXCmd}.rsrc
- duplicateiigs -y -m {targetXCmd}.rsrc :
-
- {TargetXCmd}.omf ƒ {TargetObjs}
- flush
- linkiigs {TargetObjs} ∂
- {LOptions} ∂
- {SegsToMain} ∂
- -lib "{CIIGSLibraries}"CLib ∂
- -o {TargetXCmd}.omf
-